package cn.edu.sgu.www.mhxysy.dto.chongwu;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuJiadianDTO implements DataTransferObject {

    /**
     * 体质点
     */
    @PositiveOrZero(message = "体质点" + CustomMessages.ILLEGAL)
    @NotNull(message = "体质点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "体质点", required = true)
    private Integer tizhi;

    /**
     * 力量点
     */
    @PositiveOrZero(message = "力量点" + CustomMessages.ILLEGAL)
    @NotNull(message = "力量点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "力量点", required = true)
    private Integer liliang;

    /**
     * 敏捷点
     */
    @PositiveOrZero(message = "敏捷点" + CustomMessages.ILLEGAL)
    @NotNull(message = "敏捷点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "敏捷点", required = true)
    private Integer minjie;

    /**
     * 耐力点
     */
    @PositiveOrZero(message = "耐力点" + CustomMessages.ILLEGAL)
    @NotNull(message = "耐力点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "耐力点", required = true)
    private Integer naili;

    /**
     * 魔力点
     */
    @PositiveOrZero(message = "魔力点" + CustomMessages.ILLEGAL)
    @NotNull(message = "魔力点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "魔力点", required = true)
    private Integer moli;

    /**
     * 气血
     */
    @PositiveOrZero(message = "气血" + CustomMessages.ILLEGAL)
    @NotNull(message = "气血" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "气血", required = true)
    private Integer qixue;

    /**
     * 魔法
     */
    @PositiveOrZero(message = "魔法" + CustomMessages.ILLEGAL)
    @NotNull(message = "魔法" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "魔法", required = true)
    private Integer mofa;

    /**
     * 物理伤害
     */
    @PositiveOrZero(message = "物理伤害" + CustomMessages.ILLEGAL)
    @NotNull(message = "物理伤害" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "物理伤害", required = true)
    private Integer wlsh;

    /**
     * 物理防御
     */
    @PositiveOrZero(message = "物理防御" + CustomMessages.ILLEGAL)
    @NotNull(message = "物理防御" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "物理防御", required = true)
    private Integer wlfy;

    /**
     * 法术伤害
     */
    @PositiveOrZero(message = "法术伤害" + CustomMessages.ILLEGAL)
    @NotNull(message = "法术伤害" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "法术伤害", required = true)
    private Integer fssh;

    /**
     * 法术防御
     */
    @PositiveOrZero(message = "法术防御" + CustomMessages.ILLEGAL)
    @NotNull(message = "法术防御" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "法术防御", required = true)
    private Integer fsfy;

    /**
     * 速度
     */
    @PositiveOrZero(message = "速度" + CustomMessages.ILLEGAL)
    @NotNull(message = "速度" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "速度", required = true)
    private Integer sudu;

    /**
     * 宠物ID
     */
    @Pattern(regexp = RegExps.CHONGWU_ID, message = "宠物ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.CHONGWU_ID_NOT_NULL)
    @ApiModelProperty(value = "宠物ID", required = true)
    private String chongwuId;

    /**
     * 加点方案
     */
    @Positive(message = "加点方案" + CustomMessages.ILLEGAL)
    @NotNull(message = CustomMessages.JIADIAN_SCHEMA_NOT_NULL)
    @ApiModelProperty(value = "加点方案", required = true)
    private Integer jiadianSchema;
}